package org.celery.modules.merchant.service.impl;

import org.celery.modules.merchant.entity.MerchantDesk;
import org.celery.modules.merchant.vo.MerchantDeskVO;
import org.celery.modules.merchant.mapper.MerchantDeskMapper;
import org.celery.modules.merchant.service.IMerchantDeskService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.core.tool.utils.Func;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * 商户桌台表. 服务实现类
 *
 * @author Celery
 * @since 2021-11-07
 */
@Service
public class MerchantDeskServiceImpl extends BaseServiceImpl<MerchantDeskMapper, MerchantDesk> implements IMerchantDeskService {

	@Override
	public IPage<MerchantDeskVO> selectMerchantDeskPage(IPage<MerchantDeskVO> page, MerchantDeskVO merchantDesk) {
		return page.setRecords(baseMapper.selectMerchantDeskPage(page, merchantDesk));
	}

	@Override
	public List<String> getDeskCategoryName(String deskCategoryIds) {
		return baseMapper.getDeskCategoryName(Func.toStrArray(deskCategoryIds));
	}

}
